package com.wn.listener;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * @author yellow Docter
 * @date 2022 -07-05
 * @desc
 *   监听session的创建和销毁
 *
 *   HttpSessionListener 监听session的创建和销毁
 *
 *    sessionCreated
 *    sessionDestroyed
 *
 */
public class MySessionListener implements HttpSessionListener {

    @Override
    public void sessionCreated(HttpSessionEvent se) {
        System.out.println("MySessionListener.sessionCreated session的创建 ");
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
        System.out.println("session的销毁  ");
    }
}
